import requests
url='https://lol.qq.com/main.shtml'
data=requests.get(url)
data.encoding='gbk'
with open('lol.html','w',encoding='gbk') as f:
    f.write(data.text)